//
//  LCCellUtilityButtonView.h
//  LCLibrary
//
//  Created by cc on 14-11-5.
//  Copyright (c) 2014年 cc. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "LCSwipeTableViewCell.h"

#define kUtilityButtonWidthDefault 90

@interface LCCellUtilityButtonView : UIView
/**
 *  初始化
 *
 *  @param utilityButtons
 *  @param parentCell
 *  @param utilityButtonSelector
 *
 *  @return
 */
- (id)initWithUtilityButtons:(NSArray *)utilityButtons
                  parentCell:(LCSwipeTableViewCell *)parentCell
       utilityButtonSelector:(SEL)utilityButtonSelector;

/**
 *  初始化
 *
 *  @param frame
 *  @param utilityButtons
 *  @param parentCell
 *  @param utilityButtonSelector
 *
 *  @return
 */
- (id)initWithFrame:(CGRect)frame
     utilityButtons:(NSArray *)utilityButtons
         parentCell:(LCSwipeTableViewCell *)parentCell
utilityButtonSelector:(SEL)utilityButtonSelector;

@property (nonatomic, weak, readonly) LCSwipeTableViewCell *parentCell;
@property (nonatomic, copy) NSArray *utilityButtons;
@property (nonatomic, assign) SEL utilityButtonSelector;

/**
 *  设置按钮
 *
 *  @param utilityButtons
 *  @param width
 */
- (void)setUtilityButtons:(NSArray *)utilityButtons buttonWidth:(CGFloat)width;
- (void)pushBackgroundColors;
- (void)popBackgroundColors;
@end
